<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%@include file="/view/resource.jsp"%>
		<script type="text/javascript"
			src="${msUrl}/js/ux/inventory/rm_inventory.js"></script>
	</head>
	<body class="easyui-layout">
		<!-- Search panel start -->
		<div class="ui-search-panel" region="north" style="height: 80px;"
			title="搜索框"
			data-options="striped: true,collapsible:false,iconCls:'icon-search',border:false">
			<form id="searchForm">
				<p class="ui-fields">
					<label class="ui-label">
						名称:
					</label>
					<input name="name" class="easyui-box ui-text"
						style="width: 100px;">
					<label>颜色:</label>  
		                <input name="color" class="easyui-box ui-text"
						style="width: 100px;">
				</p>
				<a href="#" id="btn-search" class="easyui-linkbutton"
					iconCls="icon-search">搜索</a>
			</form>
		</div>
		<!--  Search panel end -->

		<!-- DataList  -->
		<div region="center" border="false">
			<table id="data-list"></table>
		</div>
		
		<!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:400px;height:300px;">  
     	<form id="editForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="id">
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">产品信息</div>  
	     	   <div class="fitem">  
	               <label>编号:</label>  
	               <input class="easyui-validatebox" type="text" name="code" data-options="required:true,validType:'length[1,20]'">
	           </div>
	           <input type="hidden" name="type" value="1">   
	           <div class="fitem">  
	               <label>名称:</label>  
	               <input class="easyui-validatebox" type="text" name="name" data-options="required:true,validType:'length[1,20]'">
	           </div>
	           <div class="fitem">  
	               <label>规格:</label>  
	               <input class="easyui-validatebox" type="text" name="standard" data-options="required:true,validType:'length[1,20]'">
	           </div>   
	            <div class="fitem">  
				   <label>颜色:</label> 
				   <input id="cc" class="easyui-combobox" name="colorId"
    data-options="valueField:'id',textField:'attrValue',url:'../attribute/loadAttrList.do?type=1'"> 
	           </div>
	           <div class="fitem">  
		           <label>备注:</label>  
		           <textarea class="easyui-validatebox" data-options="required:false,length:[0,100]" name="remark"></textarea>
		       </div>  
	         </div>
     	</form>
  	 </div> 
	</body>
</html>
